<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p>{{counter}}</p>
        <div k-text="counter"></div>
        <div k-html="title"></div>
    </div>
    <!-- <script src="../node_modules/vue/dist/vue.js"></script> -->
    <script type="module">
        import Vue from './kvue.js';
        // 1:数据驱动 数据响应式
        // 2:编译 得到渲染函数
        const app = new Vue({
            el: '#app',
            data: {
                counter: 1,
                title: '<p style="color:red">Hello World</p>'
            },
        })
        setInterval(() => {
            app.counter ++;
        },1000)
    </script>
</body>

</html>